﻿@using OA.Models.ViewModels
@model LoginViewModel

@{
    Layout = null;
}

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="~/Content/Site.css" rel="stylesheet" />
        <link href="~/Plugin/kendo/css/kendo.common.min.css" rel="stylesheet" />
        <link href="~/Plugin/kendo/css/kendo.material.min.css" rel="stylesheet" />
        <script src="~/Scripts/jquery-3.2.1.min.js"></script>
        <script src="~/Plugin/kendo/script/kendo.all.min.js"></script>
        <script src="~/Plugin/kendo/script/kendo.aspnetmvc.min.js"></script>
        <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    </head>
    <body>
        @using (Html.BeginForm("Login"))
        {
            @Html.ValidationSummary(true)
            <table>
                <tr>
                    <td>@Html.DisplayNameFor(d => d.Id)</td>
                    <td>@Html.Kendo().TextBoxFor(d => d.Id)</td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(d => d.Password)</td>
                    <td>
                        @Html.Kendo().TextBoxFor(d => d.Password).HtmlAttributes(new { type = "password" })
                    </td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(d => d.Captcha)</td>
                    <td>
                        @Html.Kendo().TextBoxFor(d => d.Captcha)
                        <img src="/Captcha/GenerateCaptcha" title="看不清? 点击更换" onclick="this.src += '?'" />
                    </td>
                </tr>
            </table>
            @Html.Kendo().Button().Name("Login").Content("登录")
        }
    </body>
</html>